<?php

class image_m_product extends a_base_model_datamapper {

    public function __construct($id=null) {
        $this->table = 'product_images';
        $this->has_many = array(
        );
        $this->has_one = array(
        );

        $this->has_one['product_m_product'] = array(
            'class' => 'product_m_product',
            'join_other_as' => 'product',
            'join_self_as' => 'image'
        );
        
        parent::__construct($id);
    }
}
?>
